import request from '@/utils/request'

// 查询个人履历列表
export function listRecord(query) {
  return request({
    url: '/record/record/list',
    method: 'get',
    params: query
  })
}

// 查询个人履历详细
export function getRecord(id) {
  return request({
    url: '/record/record/' + id,
    method: 'get'
  })
}

// 新增个人履历
export function addRecord(data) {
  return request({
    url: '/record/record',
    method: 'post',
    data: data
  })
}

// 修改个人履历
export function updateRecord(data) {
  return request({
    url: '/add/add/update7',
    method: 'put',
    data: data
  })
}

// 删除个人履历
export function delRecord(id) {
  return request({
    url: '/record/record/' + id,
    method: 'delete'
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}
// 批量添加
export function addLiList(data) {
  return request({
    url: '/add/add/li',
    method: 'post',
    data: data
  })
}